import App from './App'
import api from './libs/api.js'
import common from './libs/common.js'
import {router, RouterMount} from './router.js' //路径换成自己的

Vue.prototype.$api = api
Vue.prototype.$common = common

Vue.use(router)

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif

// #ifdef H5
RouterMount(app, router, '#app')
// #endif

app.$mount()
// #endif